package com.woniu.outlet.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("申请订单")
public class MaterialApplication implements Serializable {
    @ApiModelProperty("id")
    private Integer id;
//  清领编码
    @ApiModelProperty("请领编码")
    private String applicationCode;

//   订单编码
@ApiModelProperty("订单编码")
    private String productionPlanId;

//    清领部门
    private Integer deptId;
    @ApiModelProperty("请领部门")
    private String deptName;

//    请领人
    private Integer userId;
    @ApiModelProperty("请领人")
    private String username;
    @ApiModelProperty("请领时间")
    private Date applicationTime;
    @ApiModelProperty("请领状态")
    private String spare1;
    private String spare2;
    private String spare3;

    private List<ApplicationDetail> applicationDetails;

    public MaterialApplication(String applicationCode, List<ApplicationDetail> applicationDetails) {
        this.applicationCode = applicationCode;
        this.applicationDetails = applicationDetails;
    }

    public MaterialApplication(Integer id) {
        this.id = id;
    }

    public MaterialApplication(List<ApplicationDetail> applicationDetails) {
        this.applicationDetails = applicationDetails;
    }

    public MaterialApplication( ) {
    }
}